﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FormLogin.ascx.cs" Inherits="Module_FormLogin" %>

<table id="formdn">
    <tr>
        <td colspan="2" id="headerformdangnhap">Dang nhap</td>
    </tr>
<tr><td colspan="2" id="formDangNhap1" valign=top>

<div id="login" runat=server>
<table id="tblLogin">
    <tr>
        <td align=right  >
            Tên đăng nhập:</td>
        <td  >
            
            <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
            
        </td>
    </tr>
    <tr>
        <td  align=right>
            &nbsp;</td>
        <td >
            
            &nbsp;</td>
    </tr>
    <tr>
        <td  align=right>
            Password:</td>
        <td >
            
            <asp:TextBox ID="txtPass" runat="server" TextMode="Password"></asp:TextBox>
            
        </td>
    </tr>
    <tr>
        <td >
            &nbsp;</td>
        <td >
            &nbsp;</td>
    </tr>
    <tr>
        <td >
            <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label>
        </td>
        <td >
            </td>
    </tr>
    <tr>
        <td  colspan="2" align=center id="tdbtnLogin">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnLogin" runat="server" onclick="btnLogin_Click" 
                Text="Đăng nhập" />
&nbsp;
            <asp:Button ID="btnResg" runat="server" Text="Đăng ký" 
                onclick="btnResg_Click" />
        </td>
    </tr>
</table>
</div>
<div id="logout" runat=server>

    <table id="tblLogout">
        <tr>
            <td  style="text-align: center "  >
               <p style="font-size:1.3em;font-style:normal"> Bạn đã đăng nhập thành công</p> </td>
        </tr>
        <tr>
            <td >
                Tên đăng nhập:<asp:Label 
                    ID="lblUserName" runat="server" Font-Bold=true Font-Size=1.0em></asp:Label>
            </td>
            
        </tr>
        <tr>
            <td class="tdbtnlogout">
                <asp:Label ID="lblRole" runat="server"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnLogout" runat="server" Height="22px" 
                    onclick="btnLogout_Click" Text="Logout" />
            </td>
            
        </tr>
        <tr>
            <td >
                <% Response.Write(this.proFile()); %> 
               <a href="Admin/Default.aspx" target=_blank>Quản trị website</a> 
                </td>
            
        </tr>
    </table>
</div>
</td></tr>
</table>